<?php

use Illuminate\Support\Facades\Route;

Route::group([], function () {
	
	Route::get('/', 'HomeController@index')->name('home');
	Route::get('/product', 'HomeController@product')->name('product');
	Route::get('/produce', 'HomeController@produce')->name('produce');
	Route::get('/aboutus', 'HomeController@aboutus')->name('aboutus');
	
	/**
	 * Payments callback.
	 */
	Route::post('payments/alipay/gateway', 'PaymentsController@alipayGateway')->name('payments.alipay.gateway');
	Route::post('payments/alipay/notify', 'PaymentsController@alipayNotify')->name('payments.alipay.notify');
	Route::post('payments/wxpay/notify', 'PaymentsController@wxpayNotify')->name('payments.wxpay.notify');
	Route::post('payments/wxpay/refund/notify', 'PaymentsController@wxpayRefundNotify')->name('payments.wxpay.refund.notify');
	Route::post('payments/adapay/notify', 'PaymentsController@adapayNotify')->name('payments.adapay.notify');
	Route::post('payments/adapay/refund/notify', 'PaymentsController@adapayRefundNotify')->name('payments.adapay.refund.notify');
	Route::post('payments/sandpay/notify', 'PaymentsController@sandpayNotify')->name('payments.sandpay.notify');

	Route::post('payments/sandpay/return', 'PaymentsController@sandpayReturn')->name('payments.sandpay.return');
	
	/**
	 * Freelance callback.
	 */
	Route::post('freelances/zlb/auth/notify', 'FreelancesController@zlbAuthNotify')->name('freelances.zlb.auth.notify');
	Route::post('freelances/zlb/task/notify', 'FreelancesController@zlbTaskNotify')->name('freelances.zlb.task.notify');
});
